<!DOCTYPE html  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?

/*
 *      index.php
 *
 *      Copyright 2006 Sebastian Moors <sebastian.moors@gmail.com>
 *
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */


?>

<html>
<head>
	<title>Eye of the penguin</title>
	<link rel="stylesheet" type="text/css" href="./css/red.css" />
</head>
<body>
<?php

include("src/design.php");
include("src/functions.php");
include("config.php");



if(isset($_GET['lang']) )
{
	$lang=$_GET['lang'];
} else {
	$lang=$config['lang'];
}


print $config['lang'];

$l=new i18n($lang);

$lso = new lsoDesign($l,new linux_sysinfo);
$lso->printHead($lang,$l);


$start=microtime();

switch($_GET['show'])
{
	case 'sys':
		$lso->printHostInfo();
		break;
	case 'proc':
		$lso->printProcessInfos();
		break;
	case 'user':
		$lso->printUserInfos();
		break;
	case 'dev':
		$lso->printDeviceInfos();
		break;
	case 'cron':
		$lso->printCronInfo();
		break;
	case 'fs':
		$lso->printMountedFilesystems();
		break;
	case 'php':
		phpinfo();
		break;
	case 'init':
		$lso->printInitInfo();
		break;

	default:
		$lso->printHostInfo();
		break;
}

$end=microtime();
$diff=$end-$start;
//print "<div id='end_box'><hr><i>lso 0.01 by Sebastian Moors             generated in $diff seconds</i></div>";
?>
</body>
</html>
